﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

using Bovril.Rodney.Core;

namespace Bovril.Rodney
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public static IServiceClient ServiceClient;

        private void OnStartup(object sender, StartupEventArgs e)
        {
            ServiceClient = ServiceClientFactory.CreateServiceClient(); 
        }

        private void OnExit(object sender, ExitEventArgs e)
        {
            ServiceClient.Dispose();
        }
    }
}
